<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Aquamat: Dokumentacja pliku outputs.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Wygenerowano przez Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Strona&nbsp;główna</span></a></li>
      <li><a href="pages.html"><span>Dodatkowe&nbsp;strony</span></a></li>
      <li><a href="annotated.html"><span>Struktury&nbsp;Danych</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;plików</span></a></li>
      <li><a href="globals.html"><span>Globalne</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Dokumentacja pliku outputs.h</h1><h3>(r58/r57)</h3>
<p>Plik nagłówkowy - Implementacja obsługi wyjść.  
<a href="#_details">Więcej...</a></p>

<p><a href="outputs_8h_source.html">Idź do kodu źródłowego tego pliku.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Struktury danych</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOUTPUT.html">OUTPUT</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Struktura przechowywująca dane o wyjściu.  <a href="structOUTPUT.html#_details">Więcej...</a><br/></td></tr>
<tr><td colspan="2"><h2>Definicje</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a6858ef646841f0e77501e064c8515bc4">OUTPUTS_DEVICES_NUM</a>&nbsp;&nbsp;&nbsp;2</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a94a9135e83975ca8aa530df8fc463869">OUTPUTS_NUM_PER_DEVICE</a>&nbsp;&nbsp;&nbsp;8</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a394664871fe15c04f05b311604ec5091">OUTPUTS_NUM</a>&nbsp;&nbsp;&nbsp;(OUTPUTS_DEVICES_NUM * OUTPUTS_NUM_PER_DEVICE)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a92a63185420f852823d2623ca57a606c">OUTPUTS_CHANGE_FLAG</a>&nbsp;&nbsp;&nbsp;7</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a0efa4989428b387feda9ae6b90404425">OUTPUTS_DEVICE_LV_ADDR</a>&nbsp;&nbsp;&nbsp;0x71</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#ae004f3f2fef511dc448646268dcd27f6">OUTPUTS_DEVICE_HV_ADDR</a>&nbsp;&nbsp;&nbsp;0x41</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#ae9f4c8d1b0bc174ef2185e182a73867f">SETOF</a>(x)&nbsp;&nbsp;&nbsp;<a class="el" href="outputs_8h.html#ac03ca8a68bb63c8bb25dbfba54096100">outputs_flags</a> |= _BV(x)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a44710869c8c2dbd7557d0c3832f7998a">CLROF</a>(x)&nbsp;&nbsp;&nbsp;<a class="el" href="outputs_8h.html#ac03ca8a68bb63c8bb25dbfba54096100">outputs_flags</a> &amp;= ~_BV(x)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#afae846e6b85ba4cda3437887ec29394b">CHKOF</a>(x)&nbsp;&nbsp;&nbsp;<a class="el" href="outputs_8h.html#ac03ca8a68bb63c8bb25dbfba54096100">outputs_flags</a> &amp; _BV(x)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a6f0580a3b75818aec82f2b2f17f07f55">OUTPUT_CONFIG_MASK</a>&nbsp;&nbsp;&nbsp;0x0F</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#aa1b853d087d9c54a0daa7a58a827f23b">OUTPUT_ACTIVE_FLAG</a>&nbsp;&nbsp;&nbsp;7</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#abc3ba23bb7d5c432e247d8fb76676b2e">OUTPUT_CANCEL_FLAG</a>&nbsp;&nbsp;&nbsp;6</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#aebb8ef4a18a8579a193dca05aa29f564">OUTPUT_OVERRIDE_FLAG</a>&nbsp;&nbsp;&nbsp;5</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a6c76fb0765ce5718c9459249bfba8a0c">OUTPUT_BLOCK_FLAG</a>&nbsp;&nbsp;&nbsp;3</td></tr>
<tr><td colspan="2"><h2>Funkcje</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a87b4ebc79556159d67e92592a89138e0">outputs_init</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#ae8579dc464916362d15d5c3ef3d7db56">outputs_update</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#aee96164cfca110d2428bcccd99d7c842">outputs_all</a> (uint8_t state)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a6d934b6b688afc965147161462788b63">outputs_block_all</a> (uint8_t state)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a7b4ed5cb036580bf3a699b20649863c6">output_check_flag</a> (uint8_t, uint8_t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a35c14ddb981aff01c5a3fca7348a48c3">output_set_flag</a> (uint8_t, uint8_t, uint8_t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a05039f536ca3617570483dc4c60383f0">output_block_override</a> (uint8_t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#af57fa32641f84fe26d29e350ea094cc6">output_set</a> (uint8_t id, uint8_t state)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a1799849f7fe619290f7a47601e5f4f32">output_toggle</a> (uint8_t id)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a7d089f1a3a997268cdf5c9e8abfd5337">output_switch</a> (uint8_t id, uint8_t state)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a901460c77f14d092b83d0cc60bbf29b8">outputs_assign</a> (uint8_t *, uint8_t)</td></tr>
<tr><td colspan="2"><h2>Zmienne</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structOUTPUT.html">OUTPUT</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#a04eafc79613066e5e3f2be01ce7f5cb0">outputs</a> [OUTPUTS_NUM]</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="outputs_8h.html#ac03ca8a68bb63c8bb25dbfba54096100">outputs_flags</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Opis szczegółowy</h2>
<p>Plik nagłówkowy - Implementacja obsługi wyjść. </p>
<h2><a class="anchor" id="outfunctions">
Podział funkcji</a></h2>
<ul>
<li>pracujące na grupie wyjść:<ul>
<li>outputs_init</li>
<li>outputs_update</li>
<li>outputs_all</li>
<li>outputs_block_all</li>
</ul>
</li>
<li>pracujace na pojedynczym wyjściu:<ul>
<li>output_block_override</li>
<li>output_set</li>
<li>output_toggle</li>
<li>output_switch</li>
</ul>
</li>
<li>pracujace na flagach wyjścia:<ul>
<li>output_check_flag</li>
<li>output_set_flag </li>
</ul>
</li>
</ul>
<hr/><h2>Dokumentacja definicji</h2>
<a class="anchor" id="afae846e6b85ba4cda3437887ec29394b"></a><!-- doxytag: member="outputs.h::CHKOF" ref="afae846e6b85ba4cda3437887ec29394b" args="(x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CHKOF</td>
          <td>(</td>
          <td class="paramtype">x&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td>&nbsp;&nbsp;&nbsp;<a class="el" href="outputs_8h.html#ac03ca8a68bb63c8bb25dbfba54096100">outputs_flags</a> &amp; _BV(x)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a44710869c8c2dbd7557d0c3832f7998a"></a><!-- doxytag: member="outputs.h::CLROF" ref="a44710869c8c2dbd7557d0c3832f7998a" args="(x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CLROF</td>
          <td>(</td>
          <td class="paramtype">x&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td>&nbsp;&nbsp;&nbsp;<a class="el" href="outputs_8h.html#ac03ca8a68bb63c8bb25dbfba54096100">outputs_flags</a> &amp;= ~_BV(x)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aa1b853d087d9c54a0daa7a58a827f23b"></a><!-- doxytag: member="outputs.h::OUTPUT_ACTIVE_FLAG" ref="aa1b853d087d9c54a0daa7a58a827f23b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define OUTPUT_ACTIVE_FLAG&nbsp;&nbsp;&nbsp;7</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6c76fb0765ce5718c9459249bfba8a0c"></a><!-- doxytag: member="outputs.h::OUTPUT_BLOCK_FLAG" ref="a6c76fb0765ce5718c9459249bfba8a0c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define OUTPUT_BLOCK_FLAG&nbsp;&nbsp;&nbsp;3</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="abc3ba23bb7d5c432e247d8fb76676b2e"></a><!-- doxytag: member="outputs.h::OUTPUT_CANCEL_FLAG" ref="abc3ba23bb7d5c432e247d8fb76676b2e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define OUTPUT_CANCEL_FLAG&nbsp;&nbsp;&nbsp;6</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6f0580a3b75818aec82f2b2f17f07f55"></a><!-- doxytag: member="outputs.h::OUTPUT_CONFIG_MASK" ref="a6f0580a3b75818aec82f2b2f17f07f55" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define OUTPUT_CONFIG_MASK&nbsp;&nbsp;&nbsp;0x0F</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aebb8ef4a18a8579a193dca05aa29f564"></a><!-- doxytag: member="outputs.h::OUTPUT_OVERRIDE_FLAG" ref="aebb8ef4a18a8579a193dca05aa29f564" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define OUTPUT_OVERRIDE_FLAG&nbsp;&nbsp;&nbsp;5</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a92a63185420f852823d2623ca57a606c"></a><!-- doxytag: member="outputs.h::OUTPUTS_CHANGE_FLAG" ref="a92a63185420f852823d2623ca57a606c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define OUTPUTS_CHANGE_FLAG&nbsp;&nbsp;&nbsp;7</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ae004f3f2fef511dc448646268dcd27f6"></a><!-- doxytag: member="outputs.h::OUTPUTS_DEVICE_HV_ADDR" ref="ae004f3f2fef511dc448646268dcd27f6" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define OUTPUTS_DEVICE_HV_ADDR&nbsp;&nbsp;&nbsp;0x41</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a0efa4989428b387feda9ae6b90404425"></a><!-- doxytag: member="outputs.h::OUTPUTS_DEVICE_LV_ADDR" ref="a0efa4989428b387feda9ae6b90404425" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define OUTPUTS_DEVICE_LV_ADDR&nbsp;&nbsp;&nbsp;0x71</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6858ef646841f0e77501e064c8515bc4"></a><!-- doxytag: member="outputs.h::OUTPUTS_DEVICES_NUM" ref="a6858ef646841f0e77501e064c8515bc4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define OUTPUTS_DEVICES_NUM&nbsp;&nbsp;&nbsp;2</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a394664871fe15c04f05b311604ec5091"></a><!-- doxytag: member="outputs.h::OUTPUTS_NUM" ref="a394664871fe15c04f05b311604ec5091" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define OUTPUTS_NUM&nbsp;&nbsp;&nbsp;(OUTPUTS_DEVICES_NUM * OUTPUTS_NUM_PER_DEVICE)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a94a9135e83975ca8aa530df8fc463869"></a><!-- doxytag: member="outputs.h::OUTPUTS_NUM_PER_DEVICE" ref="a94a9135e83975ca8aa530df8fc463869" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define OUTPUTS_NUM_PER_DEVICE&nbsp;&nbsp;&nbsp;8</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ae9f4c8d1b0bc174ef2185e182a73867f"></a><!-- doxytag: member="outputs.h::SETOF" ref="ae9f4c8d1b0bc174ef2185e182a73867f" args="(x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SETOF</td>
          <td>(</td>
          <td class="paramtype">x&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td>&nbsp;&nbsp;&nbsp;<a class="el" href="outputs_8h.html#ac03ca8a68bb63c8bb25dbfba54096100">outputs_flags</a> |= _BV(x)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Dokumentacja funkcji</h2>
<a class="anchor" id="a05039f536ca3617570483dc4c60383f0"></a><!-- doxytag: member="outputs.h::output_block_override" ref="a05039f536ca3617570483dc4c60383f0" args="(uint8_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void output_block_override </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Przełącza przeładowanie blokowania </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>numer wyjścia </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a7b4ed5cb036580bf3a699b20649863c6"></a><!-- doxytag: member="outputs.h::output_check_flag" ref="a7b4ed5cb036580bf3a699b20649863c6" args="(uint8_t, uint8_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t output_check_flag </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>flag</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sprawdza poszczególne flagi </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>numer wyjścia </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>flag</em>&nbsp;</td><td>flaga </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af57fa32641f84fe26d29e350ea094cc6"></a><!-- doxytag: member="outputs.h::output_set" ref="af57fa32641f84fe26d29e350ea094cc6" args="(uint8_t id, uint8_t state)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void output_set </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>state</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Włącza lub wyłącza wyjście </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>numer wyjścia </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td>docelowy stan </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a35c14ddb981aff01c5a3fca7348a48c3"></a><!-- doxytag: member="outputs.h::output_set_flag" ref="a35c14ddb981aff01c5a3fca7348a48c3" args="(uint8_t, uint8_t, uint8_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void output_set_flag </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>flag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>state</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Ustawia poszczególne flagi </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>numer wyjścia </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>flag</em>&nbsp;</td><td>flaga </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td>stan </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a7d089f1a3a997268cdf5c9e8abfd5337"></a><!-- doxytag: member="outputs.h::output_switch" ref="a7d089f1a3a997268cdf5c9e8abfd5337" args="(uint8_t id, uint8_t state)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void output_switch </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>state</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Włącza lub wyłącza wyjście sprawdzając najpierw stan blokady. </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>numer wyjścia </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td>operacja do wykonania <a class="el" href="commonDefs_8h.html#ad76d1750a6cdeebd506bfcd6752554d2">ON</a> lub <a class="el" href="commonDefs_8h.html#a29e413f6725b2ba32d165ffaa35b01e5">OFF</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a1799849f7fe619290f7a47601e5f4f32"></a><!-- doxytag: member="outputs.h::output_toggle" ref="a1799849f7fe619290f7a47601e5f4f32" args="(uint8_t id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void output_toggle </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>id</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Zmienia stan wyjścia na przeciwny. </p>
<dl><dt><b>Parametry:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>numer wyjścia </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aee96164cfca110d2428bcccd99d7c842"></a><!-- doxytag: member="outputs.h::outputs_all" ref="aee96164cfca110d2428bcccd99d7c842" args="(uint8_t state)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void outputs_all </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>state</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Wyłącza/włącza wszystkie wyjścia. </p>

</div>
</div>
<a class="anchor" id="a901460c77f14d092b83d0cc60bbf29b8"></a><!-- doxytag: member="outputs.h::outputs_assign" ref="a901460c77f14d092b83d0cc60bbf29b8" args="(uint8_t *, uint8_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void outputs_assign </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&nbsp;</td>
          <td class="paramname"> <em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>id</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Przyporządkowuje identyfikator wyjścia </p>

</div>
</div>
<a class="anchor" id="a6d934b6b688afc965147161462788b63"></a><!-- doxytag: member="outputs.h::outputs_block_all" ref="a6d934b6b688afc965147161462788b63" args="(uint8_t state)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void outputs_block_all </td>
          <td>(</td>
          <td class="paramtype">uint8_t&nbsp;</td>
          <td class="paramname"> <em>state</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Blokuje odblokowuje wszystkie wyjścia. </p>

</div>
</div>
<a class="anchor" id="a87b4ebc79556159d67e92592a89138e0"></a><!-- doxytag: member="outputs.h::outputs_init" ref="a87b4ebc79556159d67e92592a89138e0" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void outputs_init </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Inicjalizuje flagi wyjść. Wyłącza i blokuje wyjścia. </p>

</div>
</div>
<a class="anchor" id="ae8579dc464916362d15d5c3ef3d7db56"></a><!-- doxytag: member="outputs.h::outputs_update" ref="ae8579dc464916362d15d5c3ef3d7db56" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void outputs_update </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>W przypadku kiedy flaga <a class="el" href="outputs_8h.html#a92a63185420f852823d2623ca57a606c">OUTPUTS_CHANGE_FLAG</a> w jest ustawiona należy zaktualizować stan wyjść. </p>

</div>
</div>
<hr/><h2>Dokumentacja zmiennych</h2>
<a class="anchor" id="a04eafc79613066e5e3f2be01ce7f5cb0"></a><!-- doxytag: member="outputs.h::outputs" ref="a04eafc79613066e5e3f2be01ce7f5cb0" args="[OUTPUTS_NUM]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structOUTPUT.html">OUTPUT</a> <a class="el" href="outputs_8h.html#a04eafc79613066e5e3f2be01ce7f5cb0">outputs</a>[OUTPUTS_NUM]</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Tablica przechowująca stan wyjść. </p>

</div>
</div>
<a class="anchor" id="ac03ca8a68bb63c8bb25dbfba54096100"></a><!-- doxytag: member="outputs.h::outputs_flags" ref="ac03ca8a68bb63c8bb25dbfba54096100" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="outputs_8h.html#ac03ca8a68bb63c8bb25dbfba54096100">outputs_flags</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Rejestr flag związanych z obsługą wyjść. </p>

</div>
</div>
</div>
<hr size="1">
<div style="text-align: center;">
<small>Projekt udostępniony jest na zasadach Open Source. Zapoznaj się z warunkami licencji w pliku COPYING znajdujacym się w katalogu głównym.	</small>
</div>

<hr size="1">
<div style="text-align: center;">
Aquamat - sterownik akwarystyczny Open Source
<br/>
Copyright (C) 2009  <a href="http://todryk.pl">Wojciech Todryk</a> (wojciech(at)todryk(dot)pl)
</div>

<div style="text-align: right;">
<small>Dokumentację wygenerowano za pomocą programu&nbsp;</small>
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a>
<small> wersja 1.6.1 (Fri Apr 23 22:48:16 2010)&nbsp;</small>
</div>
